// 19.59
function Power(base, exponent)
{
    // write code here
    var res = 1 // 保存结果
    if(base === 0) return 0
    if(exponent < 0){
      base = 1 / base
      exponent = -exponent
    }
    while(exponent){
      if(exponent&1){
        res *= base
      }
      base *= base
      exponent = exponent>>1
    }
    return res
}
module.exports = {
    Power : Power
};